﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Frame/FrameMasterPage.master" CodeFile="UserCompany.aspx.cs" Inherits="Frame_UserCompany" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <style type="text/css">
        .style1
        {
            width: 61px;
        }
        .style2
        {
            width: 152px;
        }
        .style3
        {
            width: 168px;
        }
        .style4
        {
            width: 73px;
        }
        .style5
        {
            width: 165px;
        }
        .style6
        {
            width: 119px;
        }
        .style7
        {
            width: 79px;
        }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:scriptmanager id="ScriptManager1" runat="server">
    </asp:scriptmanager>
<div>
  <table>
        <tr>
            <td colspan="5">
                <asp:GridView ID="grdUser" runat="server" 
                    AutoGenerateColumns="False" CssClass="list" AllowPaging="True">
                    <Columns>
                   <asp:TemplateField HeaderText="序号" >   
<ItemTemplate>   
　　　<%# Container.DataItemIndex + 1%>　</ItemTemplate>   
</asp:TemplateField>  
                        <asp:BoundField DataField="USERID" HeaderText="用户ID"  />
                        <asp:BoundField DataField="USERNAME" HeaderText="用户账号"  />
                        <asp:BoundField DataField="REALNAME" HeaderText="用户姓名" />
                        <asp:BoundField DataField="CORPLB" HeaderText="客户代码" />
                         <asp:BoundField DataField="ISACTIVE" HeaderText="是否启用" />
                         
                        
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                              <nobr>
                    
                                <asp:LinkButton ID="btnRole" runat="server"  
                                    Text="编辑" 
                                    CommandArgument='<%# Eval("USERID") %>' onclick="edit_Click"  ></asp:LinkButton>
                                  <asp:LinkButton ID="LinkButton2" runat="server"  style="color:red"
                                    Text="启用" 
                                    CommandArgument='<%# Eval("USERID") %>' onclick="remove_Click"  ></asp:LinkButton>
                                

                            
                            </nobr>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>

         <tr>
            <td colspan="5">
                <asp:Label ID="lblMessage" runat="server" CssClass="ErrorNote" ></asp:Label>
            </td>
        </tr>
         <tr>
            <td colspan="2">
             <asp:Button ID="btnCancel" runat="server" CssClass="btn" Text="返回" 
                    onclick="btnCancel_Click" />
                
            </td>
            
            <td colspan="3" class="style2">
                <asp:Button ID="btnAdd" runat="server" Text="新增" CssClass="btn" 
                    onclick="btnAdd_Click" 
                     /></td>

        </tr>
    </table>
    </div>
    <asp:updatepanel id="UpdatePanel2" runat="server" updatemode="Conditional">
         <ContentTemplate>
            <asp:HiddenField ID="companyidValue" runat="server" />
         </ContentTemplate>

     </asp:updatepanel>
</asp:Content>
